package cn.wolfcode.service;

import cn.wolfcode.domain.Exam;
import cn.wolfcode.domain.ExamQuestion;
import cn.wolfcode.domain.Question;
import cn.wolfcode.domain.QuestionItem;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IExamService {
    void save(Exam exam);
    void delete(Long id);
    void update(Exam exam);
    Exam get(Long id);
    List<Exam> listAll();
    // 分页查询的方法
    PageInfo<Exam> query(QueryObject qo);
    List<Question> getList(Integer typeId);

    void insert(ExamQuestion examQuestion);

    List<Question> getQuestion(Long id,Integer typeId);

    ExamQuestion getCount(Long id,Integer typeId);

}
